<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
    <title>企业网站管理系统</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/pintuer.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/admin.css">
    <script src="${pageContext.request.contextPath}/js/jquery.js"></script>
    <script src="${pageContext.request.contextPath}/js/pintuer.js"></script>
    <style>
        form{
            margin-left: 10px;
        }
    </style>
</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 修改用户信息</strong></div>
    <form class="form-x" action="${pageContext.request.contextPath}/updateUser" method="post">
        <div class="form-group">
            <div class="label">
                <%--@declare id="sitename"--%>
                    <label for="sitename">帐号：</label>
            </div>
            <div class="field">
                <label style="line-height:33px;">
                    ${UId.username}
                </label>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label for="sitename">新密码：</label>
            </div>
            <div class="field">
                <input type="password" class="input w50" name="password" size="50" placeholder="请输入新密码" data-validate="required:请输入新密码,length#>=3:新密码不能小于3位" />
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label for="sitename">确认新密码：</label>
            </div>
            <div class="field">
                <input type="password" class="input w50" name="repassword" size="50" placeholder="请再次输入新密码" data-validate="required:请再次输入新密码,repeat#password:两次输入的密码不一致" />
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label for="sitename">状态：</label>
            </div>
            <div class="field">
                <c:if test="${UId.state eq '1'}">
                    <label class="button active">
                        <span class="icon icon-check"></span>
                        <input name="state" type="radio" checked="checked" value="1">是
                    </label>
                    <label class="button active">
                        <span class="icon icon-times"></span>
                        <input name="state"  type="radio" value="0">否
                    </label>
                </c:if>
                <c:if test="${UId.state eq '0'}">
                    <label class="button active">
                        <span class="icon icon-check"></span>
                        <input name="state" type="radio" value="1">是
                    </label>
                    <label class="button active">
                        <span class="icon icon-times"></span>
                        <input name="state" type="radio" checked="checked" value="0">否
                    </label>
                </c:if>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label></label>
            </div>
            <div class="field">
                <input type="hidden" name="uid" value="${UId.uid }"/>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label></label>
            </div>
            <div class="field">
                <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
            </div>
        </div>
    </form>
</div>
</body>
</html>
